{template 'common/header'}
<ul class="nav nav-tabs">
    <li class="active"><a href="{php echo $this->createWebUrl('Zhaoinfo');}">招聘信息编辑</a></li>
</ul>
<div class="main">
    <form class="form-horizontal" action="" role="form" method="post">
    <input type="hidden" name="token" value="{$_W['token']}" />
    <input type="hidden" name="cid" value="{$row['id']}" />

    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">职位名称</label>
        <div class="col-sm-4">
            <input type="text" name="data[title]" value="{$row['title']}" class="form-control">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">职位分类</label>
        <div class="col-sm-4">
            <select class="form-control" name="data[cid]">
                {loop $offices $key $parent}
                    <option value="{$parent['id']}" {if $row['cid'] == $parent['id']} selected {/if}>{$parent['name']}</option>
                    {loop $parent['sub'] $sub}
                    <option value="{$sub['id']}" {if $row['cid'] == $sub['id']} selected {/if}>&nbsp;&nbsp;|—{$sub['name']}</option>
                    {/loop}
                {/loop}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">薪资</label>
        <div class="col-sm-4">
            <select class="form-control" name="data[payroll]">
                {loop $config['payroll'] $key $payroll}
                <option value="{$key}" {if intval($row['payroll']) == intval($key)} selected {/if}>{$payroll}</option>
                {/loop}
            </select>
        </div>
    </div>


    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">学历</label>
        <div class="col-sm-4">
            <select class="form-control" name="data[educational]">
                {loop $config['educational'] $key $payroll}
            <option value="{$key}" {if intval($row['educational']) == intval($key)} selected {/if}>{$payroll}</option>
            {/loop}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">工作经验</label>
        <div class="col-sm-4">
            <select class="form-control" name="data[workexperience]">
                {loop $config['workexperience'] $key $payroll}
                <option value="{$key}" {if intval($row['workexperience']) == intval($key)} selected {/if}>{$payroll}</option>
                {/loop}
            </select>
        </div>
    </div>


    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">招聘人数</label>
        <div class="col-sm-4">
            <input type="text" name="data[nums]" value="{$row['nums']}" class="form-control">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">工作地点</label>
        <div class="col-sm-4">
            <input type="text" name="data[workaddress]" value="{$row['workaddress']}" class="form-control">
        </div>
    </div>

    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">福利</label>
        <div class="col-sm-4">
            {loop $config['welfare'] $key $welfare}
            <label class="checkbox-inline">
                <input type="checkbox" value="{$key}"  name="welfare[]" {if in_array(intval($key), $welfare_array)} checked {/if}> {$welfare}
            </label>
            {/loop}
        </div>
    </div>

    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">截止日期</label>
        <div class="col-sm-4">
            {php echo tpl_form_field_date('data[end_time]', $value = $row['end_time'], $withtime = false);}
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <input type="submit" class="btn btn-primary" name="save_info" value="保存">
        </div>
    </div>
</form>
</div>
{template 'common/footer'}